package FIT::Util::t::HTMLBuilder;

use FIT::Test 'FIT::Util::HTMLBuilder';

sub with_parantheses: Test
    { is HTML( BODY(P('foo'))), '<html><body><p>foo</p></body></html>' }

sub no_parantheses: Test
    { is HTML( BODY P 'foo' ), '<html><body><p>foo</p></body></html>' }

sub one_attribute: Test
    { is A( {href => '/bam'}, 'bag' ), '<a href="/bam">bag</a>' }

sub two_tags_in_one_element: Test {
    is
        HTML( BODY P('bar'), P('baz')),
        '<html><body><p>bar</p><p>baz</p></body></html>';
}


